#pragma once


// CStudyTitlebar

class CStudyTitlebar : public CWnd
{
	DECLARE_DYNAMIC(CStudyTitlebar)

public:
  /**
  @brief		default constructor
  */
	CStudyTitlebar();
  /**
  @brief		destructor
  */
	virtual ~CStudyTitlebar();

  /**
  @brief		set background color
  @param		clr color
  */
  inline void setBkColor(const COLORREF& clr)
  {
    m_theBKColor = clr;
  }

  /**
  @brief		access to background color
  @return		background color
  */
  inline COLORREF getBkColor() const
  {
    return m_theBKColor;
  }

  /**
  @brief		set text color
  @param		clr color
  */
  inline void setTextColor(const COLORREF& clr)
  {
    m_theTextColor = clr;
  }

  /**
  @brief		access to text color
  @return		text color
  */
  inline COLORREF getTextColor() const
  {
    return m_theTextColor;
  }

private:
  /**
  @brief		arrange controls
  */
  void arrangeControls();

private:
  //background color
  COLORREF m_theBKColor;

  //text color
  COLORREF m_theTextColor;

  //open study list button
  CButton m_theOStudyListBtn;

  //series view layout
  CComboBox m_theSeriesViewCombo;

  //close study button
  CButton m_theCloseButton;

protected:
	DECLARE_MESSAGE_MAP()
  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  afx_msg void OnSize(UINT nType, int cx, int cy);
  afx_msg void OnPaint();
  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};


